package com.sdp.right.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role_menu")
public class SysRoleMenu extends Model<SysRoleMenu> {

    private static final long serialVersionUID=1L;

    @TableId(value="key_id",type=IdType.ASSIGN_ID)
    private String keyId;

    /**
     * 角色编号
     */
    @TableField("role_no")
    private String roleNo;

    /**
     * 菜单编号
     */
    @TableField("menu_no")
    private String menuNo;

    /**
     * 系统编号
     */
    @TableField("system_no")
    private String systemNo;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
